import Vue from 'vue'
import Router from 'vue-router'
import youxiaorouter from './youxiaoxianjie'
import arrouter from './ar'
import hohoplayrouter from './hohoplay'
import robotrouter from './robot'
import chengbaorouter from './chengbao'
import wemorouter from './wemo'
import chuantongrouter from './chuantongwenhua'
import magicrouter from './magic'
import tottalkrouter from './tottalk'
import supergamerouter from './supergame'

Vue.use(Router)

const routes = [{
  path: '/',
  name: 'landing-page',
  component: require('@/components/LandingPage')
},
{
  path: '/swiper',
  name: 'swiper',
  component: require('@/components/swiper')
},
{
  path: '/musicplay',
  name: 'musicplay',
  component: require('@/components/MusicPlay')
},
{
  path: '/videoplay',
  name: 'videoplay',
  component: require('@/components/VideoPlay')
},
{
  path: '/gushiplay',
  name: 'gushiplay',
  component: require('@/components/GushiPlay')
},
{
  path: '/pdf',
  name: 'pdf',
  component: require('@/components/pdf')
},
{
  path: '/video',
  name: 'video',
  component: require('@/components/video')
},
{
  path: '*',
  redirect: '/'
}
]

var rou = routes.concat(youxiaorouter, arrouter, hohoplayrouter, robotrouter, chengbaorouter, wemorouter, chuantongrouter, magicrouter, tottalkrouter, supergamerouter)

const router = new Router({
  routes: rou
})

export default router
